<!DOCTYPE html>
<html>
	{include file="head.html"}
	<body>
		<link href="{$skins}css/follow.css" rel="stylesheet" />
		<div class="topfixed">
	       <div class="t_left"><a href="/index.php" class="goBack"><i class="back"></i></a></div>
	       <div class="t_main">{if $user.userid neq $ssuser.userid}Ta{else}我{/if}的关注</div>
	    </div>
	    <div class="paddingheight"></div>
	    <div class="main-body">
	    	 
	    	<div class="tabs-border">
	     		<a class="item active" href="/index.php?m=follow&userid={$user.userid}">{if $user.userid neq $ssuser.userid}Ta{else}我{/if}的关注</a>
	     		<a class="item"  href="/index.php?m=follow&type=3&userid={$user.userid}">{if $user.userid neq $ssuser.userid}Ta{else}我{/if}的粉丝</a>
	     	</div>
	    	<div class="followlist">
	    	{foreach item=c from=$data}
	    		<div class="item" >
	    			<div class="g-sd1">
	    				<a href="index.php?m=news&a=home&userid={$c.t_userid}">
	    				<img src="{$c.t_user_head|images_site}.100x100.jpg">
	    				</a>
	    			</div>
	    			<div class="g-mn1">
	    				<div class="g-mn1c">
	    					<div class="nickname">
	    						<a href="index.php?m=news&a=home&userid={$c.t_userid}">
	    						{$c.t_nickname}
	    						</a>
	    					</div>
	    					<div class="follow js-news-follow" userid={$c.t_userid}>取消关注</div>
	    				</div>
	    			</div>	
	    		</div>
	    	{/foreach}
	    	</div>
	    	{$pagelist}
	    </div>
	    <script>
	    	$(document).on("click",".js-news-follow",function(){
   				var userid=$(this).attr("userid");
   				var obj=$(this);
   				$.get("/index.php?m=follow&a=toggle&ajax=1",{t_userid:userid},function(data){
   					if(data.error){
   						skyToast(data.message);
   					}else{
   						obj.parents(".item").remove();
   					}
   				},"json");
   			});
	    </script>
	</body>
</html>
